#include<bits/stdc++.h>

using namespace std;

int mul(int a, int b) {
    return a * b;
}

int main() {
    int a[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
    int n = sizeof(a) / sizeof(a[0]);
//    int s = 0;
//    for (int i = 0; i < n; i++) {
//        s += a[i];
//    }

    int s = accumulate(a, a + n, 1, mul);
    cout << s;
    return 0;
}